While we watched our colleagues Chris and Ben take the spindly road of SSH and terminal commands, herein lies the saga of an Ecologist navigating the road of computational biology but avoiding the fork towards computer science. Follow this guide step by step and you will have a model running on a server with little understanding of what is happening.
e.g. http://www.louisaslett.com/RStudio_AMI/, I used the "ami-0acd2067" server for US east coast, VA. This
server has Rstudio, jags, dropbox, github amongst other things already installed.
(if you need something else, there are plenty of other servers to choose from. if you
feel so inclined, you can use a linux based AMI and install everything yourself)
###7. under configure instance details: select “Terminate” under shutdown behavior. Leave the rest of the options. ###8. leave storage and tag options alone. ###9. select “create a new security group” and http" security group to access AMI via browser (port 80) or ssh (port 22)
###12. Launch instance. ###13. To stop (pause) your instance, go to the “Actions Menu” at the top of the instance list, go down to “instance state” and then hit “stop”. Select “start” to resume instance.
###14. To interact with and run your instance in your browser, scroll down to your “Public DNS”, copy and paste the string there, and paste in your browser of choice ###15. the login info is username: rstudio, password: rstudio ###16. start your work! ###17. to automatically stop your instance when model run is complete: -on your instance page select the alarm icon under “alarm status” -create an alarm: + check box next to “send notification to” + select create topic next to “send notification to” + create topic name + send notificaton to: your email + check box next to “take the action” + select what you want to happen when model is running. Most likely you want “stop this instance”. Don’t mistake it for “terminate this instance” which will just delete everything that you did +complete when you want the notification and stop to happen. I’ve found that “Whenever Average of CPU Utilization is < 10% for at least 1 consecutive period of 15
minutes” seems to work pretty well for my purposes, but you may want a longer amount of time of inactivity depending on what it is you’re doing.I’ve found that I don’t work fast enough in setting up my model runs to go with the 5 minute interval of inactivity for instance stopping.
-select the "load" button and load your saved key file. (what you saved in step 11 of the first section)
you may need to change file type to all files to see the .txt file.
-save as private key (.ppk) - this file name needs to be *EXACTLY THE SAME* as they key that you saved in
step 11 above, otherwise an error occurs later in your PuTTY connection
-close PuTTYgen
(public dns will only show if instance is running)
connection type: ssh
port: 22